home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 February / EnterCD 02_2004.iso / Gry / Arcade! Classic Arcade Pack 2.0 / Arcade.EXE / $PROGRAMFILES / Arcade! Classic Arcade Pack / snake.swf / scripts / frame_2 / DoAction.as
Encoding:
Text File  |  2003-12-05  |  1.2 KB  |  63 lines

  1. game_so = SharedObject.getLocal("neaveSnake");
  2. score = 0;
  3. level = 2;
  4. f1_mc.onEnterFrame = f2_mc.onEnterFrame = f3_mc.onEnterFrame = f4_mc.onEnterFrame = function()
  5. {
  6.    this._rotation += 5;
  7. };
  8. slug_btn.onRollOver = function()
  9. {
  10.    slug_mc.gotoAndStop(2);
  11. };
  12. slug_btn.onRollOut = slug_btn.onDragOut = function()
  13. {
  14.    slug_mc.gotoAndStop(1);
  15. };
  16. slug_btn.onRelease = function()
  17. {
  18.    level = 2;
  19.    play();
  20. };
  21. worm_btn.onRollOver = function()
  22. {
  23.    worm_mc.gotoAndStop(2);
  24. };
  25. worm_btn.onRollOut = worm_btn.onDragOut = function()
  26. {
  27.    worm_mc.gotoAndStop(1);
  28. };
  29. worm_btn.onRelease = function()
  30. {
  31.    level = 1;
  32.    play();
  33. };
  34. python_btn.onRollOver = function()
  35. {
  36.    python_mc.gotoAndStop(2);
  37. };
  38. python_btn.onRollOut = python_btn.onDragOut = function()
  39. {
  40.    python_mc.gotoAndStop(1);
  41. };
  42. python_btn.onRelease = function()
  43. {
  44.    level = 0;
  45.    play();
  46. };
  47. highScores_btn.onRollOver = function()
  48. {
  49.    highScores_mc._alpha = 100;
  50. };
  51. highScores_btn.onRollOut = highScores_btn.onDragOut = function()
  52. {
  53.    highScores_mc._alpha = 40;
  54. };
  55. highScores_btn.onRelease = function()
  56. {
  57.    gotoAndStop(44);
  58. };
  59. neave_btn.onRelease = function()
  60. {
  61.    getUrl("http://www.neave.com/games/", "_blank");
  62. };
  63.